package com.example.fresheveryday.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.example.fresheveryday.po.Blog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BlogService extends IService<Blog>{
  int countByConditions(@Param("ew") Wrapper wrapper);
  IPage<Blog> getAllBlog(IPage<Blog> page);
  IPage<Blog> getBlogByConditions(IPage<Blog> page, @Param("ew") Wrapper wrapper);
  List<Blog> getThree();
  List<Blog> getSix();

}
